/*************************************************************************
> File Name: queue.h
> Author: icebear
> Mail: 3322366195@qq.com
> Created Time: 2023-07-24 21:45:27
> Description:  不使用size暂存长度数组实现循环队列;
************************************************************************/
#ifndef QUEUE_H
#define QUEUE_H

#define MAXSIZE 20

typedef struct QUEUE
{
    int data[MAXSIZE];
    int front;
    int tail;
} Queue;
Queue *create();
void destory(Queue *queue);
void push(Queue *queue, int item);
int pop(Queue *queue);
int peek(Queue *queue);
void clear(Queue *queue);
int isEmpty(Queue *queue);
int size(Queue *queue);
#endif